/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entities;

import java.util.Calendar;

/**
 *
 * @author SIX-14
 */
public class Loan {
    private int id;
    private String type_user;
    private String computerRoom;
    private String ipcomputer;
    private int numberComputer;
    private String date;
    private String startTime;

    public Loan(){

    }

   public  Loan(int id, String type_user, String computerRoom, String ipcomputer, int numberComputer){
        this.id=id;
        this.type_user=type_user;
        this.computerRoom= computerRoom;
        this.ipcomputer=ipcomputer;
        this.numberComputer=numberComputer;
        this.date=(Calendar.getInstance().get(Calendar.YEAR)+"-"+(Calendar.getInstance().get(Calendar.MONTH)+1)+"-"+Calendar.getInstance().get(Calendar.DATE));
        this.startTime=(Calendar.getInstance().get(Calendar.HOUR_OF_DAY)+":"+Calendar.getInstance().get(Calendar.MINUTE)+":"+Calendar.getInstance().get(Calendar.SECOND));

    }

    public String getType_user() {
        return type_user;
    }

    public void setType_user(String type_user) {
        this.type_user = type_user;
    }

    public String getComputerRoom() {
        return computerRoom;
    }

    public void setComputerRoom(String computerRoom) {
        this.computerRoom = computerRoom;
    }
   
   public void prueba(Loan l){
       l.id=l.id+1;
   }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getIpcomputer() {
        return ipcomputer;
    }

    public void setIpcomputer(String ipcomputer) {
        this.ipcomputer = ipcomputer;
    }

    public int getNumberComputer() {
        return numberComputer;
    }

    public void setNumberComputer(int numberComputer) {
        this.numberComputer = numberComputer;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }



}
